package Homework5;

public class Liquor extends Drinks{
    private double alcoholicity;

    public double getAlcoholicity() {
        return alcoholicity;
    }

    public void setAlcoholicity(double alcoholicity) {
        this.alcoholicity = alcoholicity;
    }

    public Liquor(String brand, double alcoholicity){
        super(brand);
        this.alcoholicity = alcoholicity;
    }
@Override
    public String advertisement(){
        return "This product contains alcohol.";
}
@Override
    public String component(){
        return "alcoholicity: " + getAlcoholicity() + "% ";
}
}
